import myaxios from "@/api/myaxios";

let BASE_URL = "/schoolApi"

let schoolApi = {
    /**
     * 根据省份id、城市id、页数查询学校集合
     * */
    getSchoolListByProvinceIdAndSchoolId(pId, cId, pageNum = 1) {

        return myaxios.get(BASE_URL + "/school/pos?pro=" + pId + "&&city=" + cId + "&&page=" + pageNum)
    },
    getSchoolListByLike(like) {
        return myaxios.get(BASE_URL + "/school/like?like=" + like)
    },
    getDetailSchoolInfoBySchoolId(sId) {
        return myaxios.get(BASE_URL + "/school/detail?schoolId=" + sId)
    },
    getSimpleSchoolInfoBySchoolId(sId) {
        return myaxios.get(BASE_URL + "/school/simple?schoolId=" + sId)
    },
    getAreaListByCampusId(cId) {
        return myaxios.get(BASE_URL + "/area/list?campusId=" + cId)
    }

}
export default schoolApi